package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.Company;

import java.util.List;

import vn.edu.ptithcm.pim.dao.CompanyDao;
@SuppressWarnings({ "rawtypes" })
public class CompanyService {
	private CompanyDao companyDao;

	public CompanyDao getCompanyDao() {
		return companyDao;
	}

	public void setCompanyDao(CompanyDao companyDao) {
		this.companyDao = companyDao;
	}

	public void save(Company company) {
		companyDao.save(company);
	}

	public void saveOrUpdate(Company company) {
		companyDao.saveOrUpdate(company);
	}

	public void lock(Company company) {
		companyDao.lock(company);
	}

	public void delete(Company company) {
		companyDao.delete(company);
	}

	public Company merge(Company company) {
		return companyDao.merge(company);
	}

	public Company findById(java.lang.Long id) {
		return companyDao.findById(id);
	}

	public List findByExample(Company company) {
		return companyDao.findByExample(company);
	}

	public List getAll() {
		return companyDao.getAll();
	}
}
